package com.dubbox.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbox.api.GreetingService;

/**
 * create by yongli on 2022-04-12 09:05
 */

@Service
public class GreetingServiceImpl implements GreetingService {
    @Override
    public String sayHello(String name) {
        System.out.println(name);
        return "this is from dubbo server2";
    }

    @Override
    public Integer add(Integer a, Integer b) {
        System.out.println("2");
        return a + b;
    }
}
